using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Zooming
{
    public class Stroke
    {
        public Stroke(PointF[] pPoints, Pen pPen)
        {
            this.mPoints = pPoints;
            this.mPen = pPen;
        }

        public void Draw(Graphics pGraphics, float pScale)
        {
            PointF lastPoint = this.mPoints[0];
            foreach (PointF point in this.mPoints)
            {
                pGraphics.DrawLine(this.mPen, lastPoint, point);
                lastPoint = point;
            }
        }

        private PointF[] mPoints;
        private Pen mPen;
    }
}
